package com.ruoyi.gybj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gybj.mapper.ChangeRuleRecordMapper;
import com.ruoyi.gybj.domain.ChangeRuleRecord;
import com.ruoyi.gybj.service.IChangeRuleRecordService;

/**
 * 报警规则变更记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-19
 */
@Service
public class ChangeRuleRecordServiceImpl implements IChangeRuleRecordService 
{
    @Autowired
    private ChangeRuleRecordMapper changeRuleRecordMapper;

    /**
     * 查询报警规则变更记录
     * 
     * @param id 报警规则变更记录主键
     * @return 报警规则变更记录
     */
    @Override
    public ChangeRuleRecord selectChangeRuleRecordById(Long id)
    {
        return changeRuleRecordMapper.selectChangeRuleRecordById(id);
    }

    /**
     * 查询报警规则变更记录列表
     * 
     * @param changeRuleRecord 报警规则变更记录
     * @return 报警规则变更记录
     */
    @Override
    public List<ChangeRuleRecord> selectChangeRuleRecordList(ChangeRuleRecord changeRuleRecord)
    {
        return changeRuleRecordMapper.selectChangeRuleRecordList(changeRuleRecord);
    }

    /**
     * 新增报警规则变更记录
     * 
     * @param changeRuleRecord 报警规则变更记录
     * @return 结果
     */
    @Override
    public int insertChangeRuleRecord(ChangeRuleRecord changeRuleRecord)
    {
        return changeRuleRecordMapper.insertChangeRuleRecord(changeRuleRecord);
    }

    /**
     * 修改报警规则变更记录
     * 
     * @param changeRuleRecord 报警规则变更记录
     * @return 结果
     */
    @Override
    public int updateChangeRuleRecord(ChangeRuleRecord changeRuleRecord)
    {
        return changeRuleRecordMapper.updateChangeRuleRecord(changeRuleRecord);
    }

    /**
     * 批量删除报警规则变更记录
     * 
     * @param ids 需要删除的报警规则变更记录主键
     * @return 结果
     */
    @Override
    public int deleteChangeRuleRecordByIds(Long[] ids)
    {
        return changeRuleRecordMapper.deleteChangeRuleRecordByIds(ids);
    }

    /**
     * 删除报警规则变更记录信息
     * 
     * @param id 报警规则变更记录主键
     * @return 结果
     */
    @Override
    public int deleteChangeRuleRecordById(Long id)
    {
        return changeRuleRecordMapper.deleteChangeRuleRecordById(id);
    }
}
